package com.bdqn.dao;

public class OperationFactory {
    public static Operation createBean(String operation) {
        Operation opt = null;
        switch (operation) {
            case "+":
                opt = new Add();
                break;
            case "-":
                opt = new Sub();
                break;
            case "*":
                opt = new Mul();
                break;
            case "/":
                opt = new Div();
                break;
            case "%":
                opt = new Bai();
                break;
            default:
        }
        return opt;
    }
}
